package com.huazi.ucenter.utils;


import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author shkstart
 * @create 2021-03-28 21:02
 */
@Component
public class UcenterPropertiesUtils implements InitializingBean {
    @Value("${wx.open.app_id}")
    private String app_id;
    @Value("${wx.open.appsecret}")
    private String appsecret;
    @Value("${wx.open.redirect_url}")
    private String redirect_url;
    @Override
    public void afterPropertiesSet() throws Exception {
            APP_ID=app_id;
            APPSECRET=appsecret;
            REDIRECT_URL=redirect_url;
    }
    public static  String APP_ID;
    public static  String APPSECRET;
    public static  String REDIRECT_URL;
}
